package com.ttbj.product.zwpay.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ttbj.api.dto.Page;
import com.ttbj.api.dto.zwpay.ZwPayDto;
import com.ttbj.api.exception.BusinessException;
import com.ttbj.api.zwpay.ZwPayService;
import com.ttbj.zwpay.dao.ZwPayMapper;

@Service("zwPayService")
public class ZwPayServiceImpl implements ZwPayService{
	
	@Autowired
	private ZwPayMapper zwPayMapper;

	@Override
	public List<ZwPayDto> findZwPayInfoByPage(String orderNum, Page page) throws BusinessException {
		List<ZwPayDto> zwPayDtos = this.zwPayMapper.queryZwPayInfoByPage(orderNum, page);
		return zwPayDtos;
	}

	@Override
	public Integer findZwPayInfoBypageCount(String orderNum) throws BusinessException {
		Integer count = this.zwPayMapper.queryZwPayInfoBypageCount(orderNum);
		return count;
	}

}
